package com.kinyx.framework.file;

import org.junit.Assert;
import org.junit.Test;

public class KPathUtils_Tester_isURL {

	@Test
	public void test() {
		Assert.assertFalse(KPathUtils.isURL(null));
		Assert.assertFalse(KPathUtils.isURL("null"));
		Assert.assertFalse(KPathUtils.isURL(""));
		Assert.assertFalse(KPathUtils.isURL(" "));

		Assert.assertFalse(KPathUtils.isURL("http://"));
		Assert.assertFalse(KPathUtils.isURL("https://"));
		Assert.assertFalse(KPathUtils.isURL("ftp://"));
		Assert.assertFalse(KPathUtils.isURL("file://"));

		Assert.assertTrue(KPathUtils.isURL("http://www.kinyx.com?foo=汉字&bar=~!@#$%^&*()_+`1234567890-={}[]:;'\"<>,.?/"));
	}

}
